<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      .container {
        height: 100vh;
        display: flex;
      }
      .left {
        width: 200px;
        height: 100%;
        background-color: pink;
      }
      .right {
        /* flex: 1; */
        flex-grow: 1;
        height: 100%;
        background-color: yellowgreen;
      }
    </style>
  </head>
  <body>
    <!-- 
    两栏布局：左边固定，右边自适应
   -->
    <div class="container">
      <div class="left"></div>
      <div class="right"></div>
    </div>
  </body>
</html>
